Run Phase_coding.m